.class Lcom/melesta/payment/sms/SmsSystem$1;
.super Landroid/content/BroadcastReceiver;
.source "SmsSystem.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/melesta/payment/sms/SmsSystem;->sendSms(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/melesta/payment/sms/SmsSystem;

.field final synthetic val$name:Ljava/lang/String;


# direct methods
.method constructor <init>(Lcom/melesta/payment/sms/SmsSystem;Ljava/lang/String;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 40
    iput-object p1, p0, Lcom/melesta/payment/sms/SmsSystem$1;->this$0:Lcom/melesta/payment/sms/SmsSystem;

    iput-object p2, p0, Lcom/melesta/payment/sms/SmsSystem$1;->val$name:Ljava/lang/String;

    invoke-direct {p0}, Landroid/content/BroadcastReceiver;-><init>()V

    return-void
.end method


# virtual methods
.method public onReceive(Landroid/content/Context;Landroid/content/Intent;)V
    .locals 5
    .parameter "arg0"
    .parameter "arg1"

    .prologue
    .line 43
    const-string v2, "SMS INFO DATA"

    invoke-virtual {p0}, Lcom/melesta/payment/sms/SmsSystem$1;->getResultData()Ljava/lang/String;

    move-result-object v3

    invoke-static {v2, v3}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 44
    const-string v2, "SMS INFO CODE"

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p0}, Lcom/melesta/payment/sms/SmsSystem$1;->getResultCode()I

    move-result v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v4, ""

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v2, v3}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 45
    const-string v2, "SMS INFO STR"

    invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v2, v3}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 47
    invoke-virtual {p0}, Lcom/melesta/payment/sms/SmsSystem$1;->getResultCode()I

    move-result v0

    .line 48
    .local v0, code:I
    invoke-virtual {p0}, Lcom/melesta/payment/sms/SmsSystem$1;->getResultData()Ljava/lang/String;

    move-result-object v1

    .line 50
    .local v1, data:Ljava/lang/String;
    invoke-static {}, Lcom/melesta/payment/PaymentManager;->getInstance()Lcom/melesta/payment/PaymentManager;

    move-result-object v2

    new-instance v3, Lcom/melesta/payment/sms/SmsResponse;

    invoke-direct {v3}, Lcom/melesta/payment/sms/SmsResponse;-><init>()V

    iget-object v4, p0, Lcom/melesta/payment/sms/SmsSystem$1;->val$name:Ljava/lang/String;

    invoke-virtual {v3, v4}, Lcom/melesta/payment/sms/SmsResponse;->setName(Ljava/lang/String;)Lcom/melesta/payment/sms/SmsResponse;

    move-result-object v3

    invoke-virtual {v3, v0}, Lcom/melesta/payment/sms/SmsResponse;->setCode(I)Lcom/melesta/payment/sms/SmsResponse;

    move-result-object v3

    invoke-virtual {v3, v1}, Lcom/melesta/payment/sms/SmsResponse;->setData(Ljava/lang/String;)Lcom/melesta/payment/sms/SmsResponse;

    move-result-object v3

    iget-object v4, p0, Lcom/melesta/payment/sms/SmsSystem$1;->this$0:Lcom/melesta/payment/sms/SmsSystem;

    #getter for: Lcom/melesta/payment/sms/SmsSystem;->defaultListener:Lcom/melesta/payment/interfaces/IListener;
    invoke-static {v4}, Lcom/melesta/payment/sms/SmsSystem;->access$000(Lcom/melesta/payment/sms/SmsSystem;)Lcom/melesta/payment/interfaces/IListener;

    move-result-object v4

    invoke-virtual {v3, v4}, Lcom/melesta/payment/sms/SmsResponse;->setListener(Lcom/melesta/payment/interfaces/IListener;)Lcom/melesta/payment/sms/SmsResponse;

    move-result-object v3

    invoke-virtual {v2, v3}, Lcom/melesta/payment/PaymentManager;->postResponse(Lcom/melesta/payment/interfaces/IResponse;)V

    .line 56
    iget-object v2, p0, Lcom/melesta/payment/sms/SmsSystem$1;->this$0:Lcom/melesta/payment/sms/SmsSystem;

    #getter for: Lcom/melesta/payment/sms/SmsSystem;->context:Landroid/content/Context;
    invoke-static {v2}, Lcom/melesta/payment/sms/SmsSystem;->access$100(Lcom/melesta/payment/sms/SmsSystem;)Landroid/content/Context;

    move-result-object v2

    invoke-virtual {v2, p0}, Landroid/content/Context;->unregisterReceiver(Landroid/content/BroadcastReceiver;)V

    .line 57
    return-void
.end method
